module.exports = function($scope, $state, $stateParams, $modalInstance, $modal, $resource,FileUploader,toaster, item, type, flag){
    $scope.obj = {};
    $scope.obj1=item;
    $scope.flag=flag;
    console.log($scope.obj1);
    console.log($scope.flag);
    $resource('/api/ac/cdc/leagueCardOrderService/findCardCheckList', {}, {}).
    save({'user_code' : $scope.obj1.user_code},function (res) {
        if (res.errcode != 0) {
            toaster.error({title:"",body:res.errmsg});
            return;
        }
        $scope.obj=res.data;
    });   
  

    $scope.cancel = function () {
      $modalInstance.close();
    }
  
}
  